WordDocument Class

Represents a word processing document.

Definition

Namespace: Independentsoft.Office.Word
Assembly: Independentsoft.Office (in Independentsoft.Office.dll) Version: 3.0.460.1+37fe42d8e65847775742df0a70fdb403ab6fa65f
C#
public class WordDocument : OfficeDocument
Inheritance
Object    OfficeDocument    WordDocument

Constructors

WordDocument Initializes a new instance of the WordDocument class.
WordDocument(Stream) Initializes a new instance of the WordDocument class from a stream.
WordDocument(String) Initializes a new instance of the WordDocument class from a file.

Properties

ApplicationName Gets or sets the name of the application that created the document.
(Inherited from OfficeDocument)
ApplicationVersion Gets or sets the version of the application that created the document.
(Inherited from OfficeDocument)
Background Gets or sets the document background.
Body Gets the document body.
Category Gets or sets the category of the document. Example values for this property might include: Resume, Letter, Technical Presentation, and so on.
(Inherited from OfficeDocument)
CharacterCount Gets or sets the total number of characters in the document.
(Inherited from OfficeDocument)
Comments 
Company Gets or sets the name of a company associated with the document.
(Inherited from OfficeDocument)
ContentStatus Gets or sets status of the content. Example values for this property might include: "Draft", "Reviewed", "Final", and so on.
(Inherited from OfficeDocument)
ContentType Gets or sets type of content represented, generally defined by a specific use and intended audience. This property is distinct from MIME content types as defined in RFC 2616.
(Inherited from OfficeDocument)
ContentTypeTable Gets content types table.
(Inherited from OfficeDocument)
Created Gets or sets date and time of creation of the document.
(Inherited from OfficeDocument)
Creator Gets or sets entity primarily responsible for making the content of the document.
(Inherited from OfficeDocument)
CustomFileTable Gets table with documents custom files. It allows you to add files to the document and save them together with document.
(Inherited from OfficeDocument)
CustomProperties
(Inherited from OfficeDocument)
Description Gets or sets explanation of the content of the document.
(Inherited from OfficeDocument)
DigitalSignature Gets or sets the signature of a digitally signed document.
(Inherited from OfficeDocument)
DocumentSecurity Gets or sets the security level of the document as a numeric value.
(Inherited from OfficeDocument)
EnableScaling Indicates the display mode of the document thumbnail. Set this element to TRUE to enable scaling of the document thumbnail to the display. Set this element to FALSE to enable cropping of the document thumbnail to show only sections that will fit the display.
(Inherited from OfficeDocument)
Endnotes 
Fonts 
Footnotes 
GlossaryDocument Gets or sets the glossary document.
HeadingPairs Gets or sets heading pairs. Heading pairs indicates the grouping of document parts and the number of parts in each group. These parts are not document parts but conceptual representations of document sections.
(Inherited from OfficeDocument)
HiddenSlideCount Gets or sets the number of hidden slides in a presentation document.
(Inherited from OfficeDocument)
HyperlinkList Gets or sets the set of hyperlinks that were in the document when last saved.
(Inherited from OfficeDocument)
HyperlinksChanged This element specifies that one or more hyperlinks in this part were updated exclusively in this part by a producer. The next producer to open this document shall update the hyperlink relationships with the new hyperlinks specified in this part.
(Inherited from OfficeDocument)
Identifier Gets or sets unambiguous reference to the document within a given context.
(Inherited from OfficeDocument)
Ignorable Gets or sets the space-delimited list of namespace prefixes that a consumer may ignore (the document's mc:Ignorable attribute).
InputFileTable Gets table with all input files. It allows you to get files from the document.
(Inherited from OfficeDocument)
IsMacroEnabled Gets or sets a value that indicates whether the document has macros.
IsSharedDocument Indicates if this document is currently shared between multiple producers. If this element is set to TRUE, producers should take care when updating the document.
(Inherited from OfficeDocument)
IsTemplate Gets or sets a value that indicates whether the document is a template document.
Keywords Gets or sets delimited set of keywords to support searching and indexing. This is typically a list of terms that are not available elsewhere in the properties.
(Inherited from OfficeDocument)
Language Gets or sets the language of the intellectual content of the document. RFC 3066 provides guidance on encoding to represent languages.
(Inherited from OfficeDocument)
LastCharacterCount Gets or sets the last count of the number of characters (including spaces) in the document.
(Inherited from OfficeDocument)
LastModifiedBy Gets or sets user who performed the last modification. Example values for this property might include: A name, email address, employee ID, and so on.
(Inherited from OfficeDocument)
LastPrinted Gets or sets date and time of the last printing.
(Inherited from OfficeDocument)
LineCount Gets or sets the total number of lines in the document.
(Inherited from OfficeDocument)
LinksUpToDate Indicates whether hyperlinks in the document are up-to-date. Set this element to TRUE to indicate that hyperlinks are updated. Set this element to FALSE to indicate that hyperlinks are outdated.
(Inherited from OfficeDocument)
Macro
(Inherited from OfficeDocument)
Manager Gets or sets the name of a supervisor associated with the document.
(Inherited from OfficeDocument)
Modified Gets or sets date and time on which the document was changed.
(Inherited from OfficeDocument)
MultimediaClipCount Gets or sets the total number of sound or video clips that are present in the document.
(Inherited from OfficeDocument)
NoteCount Gets or sets the number of slides in a presentation containing notes.
(Inherited from OfficeDocument)
NumberingDefinitions Gets or sets the document numberings.
PageCount Gets or sets the total number of pages of the document.
(Inherited from OfficeDocument)
ParagraphCount Gets or sets the total number of paragraphs found in the document.
(Inherited from OfficeDocument)
PartTitles Gets or sets the title of each document.
(Inherited from OfficeDocument)
PresentationFormat Gets or set the intended format for a presentation document.
(Inherited from OfficeDocument)
RelativeHyperlinkBase Gets or sets the base string used for evaluating relative hyperlinks in this document.
(Inherited from OfficeDocument)
Revision Gets or sets the revision number.
(Inherited from OfficeDocument)
Settings Gets the document settings.
StyleDefinitions Gets or sets the document styles.
Subject Gets or sets the topic of the content of the document.
(Inherited from OfficeDocument)
TemplateName Gets or sets name of an external document template containing format and style information used to create the document.
(Inherited from OfficeDocument)
Theme Gets or sets documents themes.
(Inherited from OfficeDocument)
Title Gets or sets the name given to the document.
(Inherited from OfficeDocument)
TotalTime Gets or sets total time the document has been edited. The default time unit is minutes.
(Inherited from OfficeDocument)
Version Gets or sets the version number.
(Inherited from OfficeDocument)
WebSettings Gets the document web settings.
WordCount Gets or sets the total number of words of the document.
(Inherited from OfficeDocument)

Methods

Clone Creates a new object that is a deep copy of the current WordDocument object.
Equals
(Inherited from Object)
Finalize
(Inherited from Object)
GetBytes Converts the document to an array of bytes.
(Overrides OfficeDocumentGetBytes)
GetContentElements Returns all content elements.
GetFields Returns all fields from the document.
GetHashCode
(Inherited from Object)
GetParagraphs Returns all paragraphs from the document.
GetPictures Returns all pictures from the document.
GetRuns Returns all runs from the document.
GetSections Returns all sections from the document.
GetStream Returns the document as a stream to read from.
(Overrides OfficeDocumentGetStream)
GetTables Returns all tables from the document.
GetTexts Returns all texts from the document.
GetType
(Inherited from Object)
LoadFromDoc(Stream) Loads a DOC document from a stream. See LoadFromDoc(String).
LoadFromDoc(String) Loads a DOC (Microsoft Word 97-2003 binary format) document and reconstructs its content (text, character/paragraph formatting, styles, tables, fields and embedded PNG/JPEG images) into this document.
LoadFromHtml 
LoadFromHtmlString 
LoadFromPdf(Stream) Loads a PDF document from a stream. See LoadFromPdf(String).
LoadFromPdf(String) Loads a PDF document and reconstructs its content (text, formatting, images and inferred tables) into this document. PDF is a final-form format, so the reconstruction is heuristic and lossy. Encrypted PDF files are not supported.
LoadFromRtf(Stream) Loads an RTF document from a stream. See LoadFromRtf(String).
LoadFromRtf(String) Loads an RTF (Rich Text Format) document and reconstructs its content (text, character/paragraph formatting, tables and embedded PNG/JPEG images) into this document.
LoadFromRtfString Loads an RTF document from an RTF string.
MemberwiseClone
(Inherited from Object)
Open(Stream) Opens the document from a stream.
(Overrides OfficeDocumentOpen(Stream))
Open(String) Opens the document from a file.
(Overrides OfficeDocumentOpen(String))
Replace(IListString, IListString) Replaces all occurrences of a specified oldText with newText.
Replace(String, Run) Replaces all occurrences of the specified text with run object.
Replace(String, IListRun) Replaces all occurrences of the specified text with a collection of run objects.
Replace(String, String) Replaces all occurrences of a specified oldText with newText.
Replace(IListString, IListString, ReplaceIn) Replaces all occurrences of a specified oldText with newText.
Replace(String, Run, ReplaceIn) Replaces all occurrences of the specified text with run object.
Replace(String, IListRun, ReplaceIn) Replaces all occurrences of the specified text with a collection of run objects.
Replace(String, String, ReplaceIn) Replaces all occurrences of a specified oldText with newText.
Save(Stream) Saves the document to the specified stream.
(Overrides OfficeDocumentSave(Stream))
Save(String) Saves the document to the specified file.
(Overrides OfficeDocumentSave(String))
Save(String, Boolean) Saves the document to the specified file.
(Overrides OfficeDocumentSave(String, Boolean))
SaveAsHtml 
SaveAsMarkdown(Stream) Saves the document in Markdown format.
SaveAsMarkdown(String) Saves the document in Markdown format.
SaveAsMarkdown(String, Boolean) Saves the document in Markdown format.
SaveAsPdf(Stream) Saves the document in PDF format.
SaveAsPdf(String) Saves the document in PDF format.
SaveAsPdf(String, Boolean) Saves the document in PDF format.
SaveAsRtf 
ToMarkdown Returns the document content as a Markdown string.
ToString Returns a string that represents the current WordDocument.
(Overrides ObjectToString)
ToText Returns the document body text as plain text.

See Also